.ai-server-page {
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100vh;
  overflow: hidden;
}

/* 背景视频容器 */
.ai-server-video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 800px;
  z-index: -1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-server-video-background video {
  width: 400px;
  height: 1200px;
  object-fit: cover;
}

/* 内容遮罩层 */
.ai-server-page {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.75);
}

/* 页面头部 */
.ai-server-header {
  background-color: #e6f7ff;
  color: #333;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-top: 5px;
}

.ai-server-title {
  font-size: 32px;
  font-weight: 600;
}

.ai-server-subtitle {
  font-size: 24px;
  opacity: 0.9;
  margin-top: 4px;
  color: #666;
}

/* 聊天内容区域 */
.ai-server-chat-container {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 消息组容器 */
.ai-server-message-group {
  margin-bottom: 20px;
}

/* 消息项容器 */
.ai-server-message-item {
  display: flex;
  align-items: flex-start;
}

/* AI消息布局 */
.ai-server-message-item.ai-message-wrapper {
  justify-content: flex-start;
}

/* 用户消息布局 */
.ai-server-message-item.user-message-wrapper {
  justify-content: flex-end;
}

/* 消息头像容器 */
.ai-server-message-avatar {
  margin: 0 8px;
}

/* 小头像样式 */
.ai-server-avatar-small {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* 消息内容包装器 */
.ai-server-message-content-wrapper {
  max-width: 70%;
  display: flex;
  flex-direction: column;
}

/* 用户名容器 */
.ai-server-message-username {
  margin-bottom: 4px;
  padding: 0 8px;
}

/* 用户名文本样式 */
.ai-server-username-text {
  font-size: 23px;
  color: #999;
}

/* 消息气泡容器 */
.ai-server-message-bubble {
  padding: 12px 16px;
  border-radius: 18px;
  word-wrap: break-word;
  line-height: 1.5;
}

/* AI消息气泡样式 */
.ai-server-message-bubble.ai-message {
  background-color: #fff;
  color: #333;
  border-bottom-left-radius: 4px;
}

/* 用户消息气泡样式 */
.ai-server-message-bubble.user-message {
  background-color: #07C160;
  color: #fff;
  border-bottom-right-radius: 4px;
}

/* 消息文本样式 */
.ai-server-message-text {
  font-size: 24px;
}

/* 消息时间容器 */
.ai-server-message-time {
  margin-top: 4px;
  padding: 0 8px;
}

/* 消息时间文本样式 */
.ai-server-time-text {
  font-size: 16px;
  color: #999;
}

/* 头像 */
.ai-server-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin: 0 10px;
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

/* 输入区域 */
.ai-server-input-container {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #eee;
}

.ai-server-input-wrapper {
  flex: 1;
  position: relative;
}

.ai-server-textarea {
  width: calc(100% - 20px);
  min-height: 80px;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 24px;
  outline: none;
  background-color: white;
}

.ai-server-send-button {
  width: 125px;
  height: 80px;
  background-color: #07C160 !important;
  border: none !important;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 20px;
  font-size: 25px;
  margin-right: 10px;
  color: white !important;
}

.ai-server-send-button.disabled {
  background-color: #ccc;
}

.ai-server-send-text {
  color: white;
  font-size:24px;
}

/* 加载状态 */
.loading-wrapper {
  display: flex;
  justify-content: center;
  padding: 10px 0;
}

.loading-dots {
  display: flex;
  gap: 4px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #1AAD19;
  animation: loading 1.4s infinite ease-in-out both;
}

.dot:nth-child(1) {
  animation-delay: -0.32s;
}

.dot:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes loading {
  0%, 80%, 100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}

/* 响应式设计 */
@media (max-width: 375px) {
  .header {
    padding: 12px 16px;
  }
  
  .title {
    font-size: 16px;
  }
  
  .subtitle {
    font-size: 12px;
  }
  
  .chat-container {
    padding: 16px;
    gap: 12px;
  }
  
  .message-content {
    padding: 10px 14px;
    font-size: 13px;
  }
  
  .avatar {
    width: 36px;
    height: 36px;
  }
  
  .input-container {
    padding: 12px;
  }
}